<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "article_and_category".
 *
 * @property string $article_id
 * @property string $category_id
 */
class ArticleAndCategory extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'article_and_category';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['article_id', 'category_id'], 'required'],
            [['article_id', 'category_id'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'article_id' => '文章id',
            'category_id' => '个人分类id',
        ];
    }
}
